/* 🌈 活力彩虹主题 - Vibrant Rainbow Theme */

/* 全局变量 */
:root {
    --primary-color: #ff006e;
    --secondary-color: #8338ec;
    --accent-color: #3a86ff;
    --success-color: #06ffa5;
    --warning-color: #ffbe0b;
    --error-color: #ff073a;
    --text-color: #2d1b69;
    --text-light: #5f4b8b;
    --background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --background-light: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 4px 15px rgba(131, 56, 236, 0.2);
    --shadow-md: 0 8px 25px rgba(255, 0, 110, 0.3);
    --shadow-lg: 0 15px 35px rgba(58, 134, 255, 0.4);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 全局背景 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 卡片样式 - 彩虹渐变 */
.spider-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.spider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff006e, #8338ec, #3a86ff, #06ffa5, #ffbe0b);
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.spider-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.02);
}

.spider-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    color: white;
    padding: 25px;
    border-bottom: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 统计卡片 - 霓虹效果 */
.stats-card {
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    background-size: 300% 300%;
    animation: neonGlow 3s ease-in-out infinite;
    color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 2s infinite;
}

@keyframes neonGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 110, 0.5), 0 0 40px rgba(131, 56, 236, 0.5); }
    50% { box-shadow: 0 0 30px rgba(58, 134, 255, 0.7), 0 0 60px rgba(6, 255, 165, 0.7); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stats-card:hover {
    transform: scale(1.05) rotate(2deg);
}

.stats-card .stats-number {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.stats-card .stats-label {
    font-size: 1.3em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 按钮样式 - 彩虹按钮 */
.btn-vibrant {
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    background-size: 200% 200%;
    animation: buttonGlow 2s ease infinite;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 35px;
    font-weight: 700;
    font-size: 1.1em;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

@keyframes buttonGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-vibrant:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 0, 110, 0.4);
}

.btn-vibrant::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-vibrant:hover::before {
    left: 100%;
}

/* 表格样式 - 彩虹边框 */
.spider-table {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.spider-table::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff, #06ffa5, #ffbe0b);
    border-radius: var(--border-radius);
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spider-table th {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
    color: var(--text-color);
    font-weight: 700;
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spider-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.spider-table tr:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    transform: scale(1.01);
    transition: var(--transition);
}

/* 图表容器 - 水晶效果 */
.chart-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    animation: crystalShine 3s infinite;
}

@keyframes crystalShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 响应式网格 - 弹性布局 */
.spider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .spider-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stats-card {
        padding: 30px;
    }
    
    .stats-card .stats-number {
        font-size: 3em;
    }
    
    .btn-vibrant {
        padding: 12px 25px;
        font-size: 1em;
    }
}